<html><head>
<title>个人中心</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/cred.css">
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/user-center.css">
<include file="./Public/public/public.html" />
</head>
<body>
<include file="./Public/public/top.html" />

<div class="layout-wrap">
    <!--已审核-->
    <div class="layout">
<include file="./Public/public/centerLeft.html" />                      
<link rel="stylesheet" type="text/css" href="{$app_path}{$static_path}/css/cred.css">

<div class="right" ms-controller="right" style="min-height: 882px;width:78%;">

	<h2 style="font-size: 22px;
    color: #FFA200;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 10px;">我的借款标</h2>
	<p></p>
	<div class="form-horizontal" id="searchForm">
		<div class="form-group">
			<div class="col-sm-3">
			<a href="{:U('Mycredit/loader')}"><input type="button" style="min-width: 30px;color: #ffffff;
    background-color: #f0ad4e;
    border-color: #eea236;    -webkit-appearance: button;
    cursor: pointer;display: inline-block;
    margin-bottom: 0;
    font-weight: normal;
    text-align: center;
    vertical-align: middle;
    -ms-touch-action: manipulation;
    touch-action: manipulation;
    cursor: pointer;
    background-image: none;
    border: 1px solid transparent;
    white-space: nowrap;
    padding: 8px 28px;
    font-size: 15px;
    line-height: 1.42857143;
    border-radius: 2px;
    -webkit-user-select: none;" value="发布借款标"></a>
			</div>
			<div class="col-sm-1">
			</div>
		</div>
	</div>
	<p class="info-box" style="display: none;">
</p><br/>
<div class="page_min_h">
<div class="loan-list-cont ind-investbox" id="xsb">
                <h4 style="display: block;">
                    <span class="w5">&nbsp;&nbsp;</span> <span class="w10">借款项目标题 </span>
                    <span class="w10" id="Sort_Rate" onclick="SortLoan(this)"><a class="blue" title="按年利率排序">年利率 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w13" id="Sort_Amount" onclick="SortLoan(this)"><a class="blue" title="按金额排序">金额 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                     <span class="w13" id="Sort_Amount" onclick="SortLoan(this)"><a class="blue" title="按金额排序">授信额度 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w11" id="Sort_Term" onclick="SortLoan(this)"><a class="blue" title="按期限排序">期限 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class="w16">还款方式</span>
                    <span class="w11" id="Sort_Sch" onclick="SortLoan(this)"><a class="blue" title="按进度排序">进度 </a>
                        <i class="iconfont f18 desc" style="display:none" id="Sort1"></i>
                        <i class="iconfont f18 asc" style="display:none" id="Sort2"></i>
                    </span>
                    <span class='w16'>状态</span>
                    <span class="w7">&nbsp;&nbsp;</span> 
                </h4>
                <ul id="LoanLists">
                <volist name="investlist" id="vo">
                <if condition="$i%2 eq 0"><li class="two"></if>
	            <if condition="$i%2 neq 0"><li class="one"></if>
	                  	<div class="w5 mt20"><span class="icon-diactive ml11"></span></div>
	                	<div class="w10 mt12">
	                		<span class="f18">{$vo.title}</span><br>
	                		<span class="gray">发标时间:{$vo.create_time}</span>
	                	</div>
	                	<div class="w10 mt20"><span class="f18 red">{$vo.rate}%</span></div>
	                	<div class="w13 mt20">
	                		<span class="f18">{$vo.money}</span><span class="gary">元</span>
	                	</div>
	                	<div class="w13 mt20">
	                		<span class="f18">{$vo.credmoney}</span><span class="gary">元</span>
	                	</div>
	                		<div class="w11 mt20">
	                			<if condition="$vo.tim_type eq 1">
	                				<span class="f18">{$vo.term}</span> <span class="gary">天</span>
	                			</if>
	                			<if condition="$vo.tim_type eq 2">
	                				<span class="f18">{$vo['term']/30}</span> <span class="gary">个月</span>
	                			</if>
	                		</div> 
	                	<div class="w16 mt20">按月付息到期还本</div>
	                	<div class="w11 col_5 mt28">
	                		<font>{$vo['tovalue']/$vo['money']*100|round=###,2}%</font>
	                	</div>
	                	<div class="w16 mt20">
	                			<if condition="$vo.status eq 1">
	                			   <if condition="$vo.is_open eq 0">
	                			              投标中<br/>
	                			     &nbsp;&nbsp;<input type="button" class="fabutouz" value="去暂停" onclick="updatloader('{$vo.id}');"/>
			                	   <else/>
			                	         已暂停<br/>
			                			&nbsp;&nbsp;<input type="button" class="fabutouz" value="去开启" onclick="updatloader('{$vo.id}');"/>
			                	   </if>
		                		</if>
		                		<if condition="$vo.status eq 2">
		                			还款中
		                		</if>
		                		<if condition="$vo.status eq 3">
		                			已过期
		                		</if>
		                		<if condition="$vo.status eq 4">
		                			已完成
		                		</if>
	                	</div>
	                	</li>
                </volist>
                </ul>
            </div>
</div>
    <div class="clr"></div>
        </div>
        <div class="clr"></div>
    </div>
<include file="./Public/public/footer.html" />
<script type="text/javascript" src="{$app_path}{$static_path}/js/cycle.js"></script>
<script type="text/javascript" src="{$app_path}{$static_path}/js/raphael.js"></script>
<script type="text/javascript">
  function updatloader(id){
	  var url="{:U('Mycredit/updaisopenloader')}";
	  url=url+"?id="+id;
	  $.ajax({
  		type: "get", 
  		url:url,
  		async: false, 
  		error: function(request) {showModal("system error");}, 
  		success: function(data){
  			if(data.status=='0'){
  				showModal(data.info);
  				setTimeout(function() { 
  					location.href='{:U('Mycredit/myloaderinfo')}';
  					},700);
  			}else{
  				showModal(data.info);
  			}
  		}
  	})
  }
</script>
</body></html>